import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "your-service", fallback = YourFallback.class)
public interface YourFeignClient {
    @RequestMapping(method = RequestMethod.GET, value = "/your-endpoint")
    @HystrixCommand(commandKey = "yourMethod", fallbackMethod = "fallbackForYourMethod")
    String yourMethod();
}
